import { getToken } from "../common/util/auth.js"
import request from "./request.js"

// 登录接口

export function toLogin (data) {
	return request({
		url: '/user/login/byPassword/v1',
		headers: {
			isToken: false
		},
		method: 'post',
		data
	})
}



// 获取用户信息

export function toGetInfo (data) {
	return request({
		url: '/user/getInfo/v1',
		method: 'get',
		data
	})
}



// 退出登录

export function toLogout() {
	return request({
		url: '/user/loginOut',
		method: 'post',
	})
}